﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering;

[CreateAssetMenu(menuName = "Rendering/MuYuPipeline", fileName = "MuYuPipeline")]
public class MuYuPipelineAsset : RenderPipelineAsset
{
    public enum ShadowMapSize
    {
        _256 = 256,
        _512 = 512,
        _1024 = 1024,
        _2048 = 2048,
        _4096 = 4096
    }
    [SerializeField]
    private ShadowMapSize shadowMapSize = ShadowMapSize._1024;

    [SerializeField]
    private bool dynamicBatching = false;

    [SerializeField]
    private bool instancingBatching = false;

    protected override IRenderPipeline InternalCreatePipeline()
    {
        return new MuYuPipeline(dynamicBatching, instancingBatching, (int)shadowMapSize);
    }
}
